package com.w3c.pragmatic.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 阿里云文件类型
 *
 * @author wangdong
 * @since 2025/2/24 16:54
 */
@Getter
@AllArgsConstructor
public enum AliOssFileTypeEnum {
  BMP(".bmp", "image/bmp"),
  GIF(".gif", "image/gif"),
  JPEG(".jpeg", "image/jpeg"),
  JPG(".jpg", "image/jpeg"),
  PNG(".png", "image/jpeg"),
  HTML(".html", "text/html"),
  XML(".xml", "text/xml"),
  TXT(".txt", "application/octet-stream"),
  SQL(".sql", "application/octet-stream"),
  VSD(".vsd", "application/vnd.visio"),
  PDF(".pdf", "application/pdf"),
  PPT(".ppt", "application/vnd.ms-powerpoint"),
  PPTX(".pptx", "application/vnd.ms-powerpoint"),
  DOC(".doc", "application/msword"),
  DOCX(".docx", "application/msword"),
  XLS(".xls", "application/vnd.ms-excel"),
  XLSX(".xlsx", "application/vnd.ms-excel"),
  CSV(".csv", "application/vnd.ms-excel");

  private final String code;
  private final String text;
}
